#include<stdio.h>
void change(int* a,int* b);
int main(void){
    int a,b;
    scanf("%d %d",&a,&b);
    change(&a,&b);
    printf("%d %d",a,b);
    return 0;
}
void change(int* a,int* b){
    int temp;
    temp = *a;
    *a = *b;
    *b = temp;
}